package com.wlient.basic.Thread.safeThread;

import java.util.concurrent.atomic.AtomicInteger;

public class noSafeThread extends Thread {

    private static int i = 0;

    @Override
    public synchronized void run() {
            i++;
            System.out.println(i);

    }

    public static void main(String[] args) {
        for (int i=0;i<100;i++){
            noSafeThread noSafeThread = new noSafeThread();
            noSafeThread.start();
        }
   }
}
